'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 英雄天赋
 * @author sundbcn@gmail.com (sun debing)
 */

var moment = require('moment');
var mongoose = require('mongoose');

var talentSchema = new mongoose.Schema({
    // 天赋技能id
    talent_id: {
        type: Number,
        require: true
    },

    // 当前天赋技能状态是否开放(0： 没开放    1：已开放)
    open_talent_status: {
        type: Number,
        default: 0
    }
});

/**
 * 英雄天赋
 * @return {[type]} [description]
 */

talentSchema.methods.addAttack = function () {

};

if (!talentSchema.options.toJSON) {
    talentSchema.options.toJSON = {};
}
/* jshint unused:false */
talentSchema.options.toJSON.transform = function (doc, ret) {
    delete ret.__v;
    delete ret._id;
};

module.exports = talentSchema;
